<nav class="navbar navbar-inverse navbar-fixed-top">
	<div class="container">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false"
			    aria-controls="navbar">
				<span class="sr-only">Toggle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="#">班级说说</a>
		</div>
		<div id="navbar" class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li <%if(active==0){%> class="active"<%}%> >
					<a href="#">全部说说
						<span class="sr-only">(current)</span>
					</a>
				</li>
				<li>
					<a href="#">我的说说</a>
				</li>
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">成员列表
						<span class="caret"></span>
					</a>
					<ul class="dropdown-menu">
						<li>
							<a href="#">Action</a>
						</li>
						<li>
							<a href="#">Another action</a>
						</li>
						<li>
							<a href="#">Something else here</a>
						</li>
						<li role="separator" class="divider"></li>
						<li>
							<a href="#">Separated link</a>
						</li>
						<li role="separator" class="divider"></li>
						<li>
							<a href="#">One more separated link</a>
						</li>
					</ul>
				</li>
			</ul>

			<ul class="nav navbar-nav navbar-right">
				<% if(login!=true) {%>
					<li <%if(active==1){%> class="active"<%}%>>
						<a href="/regist">注册
							<span class="sr-only">(current)</span>
						</a>
					</li>
					<li <%if(active==2){%> class="active"<%}%>>
						<a href="/login">登陆</a>
					</li>
					<% }%>
						<% if(login) {%>
							<li>
								<a href="javascript:;">欢迎您回来，
									<%= username%>
								</a>
							</li>
							<li>
								<a href="javascript:;">个人资料</a>
							</li>
							<% }%>
			</ul>
		</div>
		<!--/.navbar-collapse -->
	</div>
</nav>